Mercurial > public > sg101
comparison bio/tests/test_flags.py @ 1219:f354554afb6e modernize tip
Add more bio unit tests.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Feb 2025 17:17:09 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1218:54a26351c74b | 1219:f354554afb6e |
---|---|
1 """ | |
2 Unit tests for the bio flag utility. | |
3 | |
4 """ | |
5 from django.test import TestCase | |
6 | |
7 | |
8 class FlagsTestCase(TestCase): | |
9 def test_flag_loading(self): | |
10 import bio.flags | |
11 | |
12 # Just make sure we have data and didn't blow up. | |
13 self.assertNotEqual(len(bio.flags.FLAG_DATA), 0) | |
14 self.assertNotEqual(len(bio.flags.FLAG_CHOICES), 0) | |
15 self.assertEqual(len(bio.flags.FLAG_DATA), len(bio.flags.FLAG_CHOICES)) | |
16 |