diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bio/tests/test_flags.py	Sat Feb 22 17:17:09 2025 -0600
@@ -0,0 +1,16 @@
+"""
+Unit tests for the bio flag utility.
+
+"""
+from django.test import TestCase
+
+
+class FlagsTestCase(TestCase):
+    def test_flag_loading(self):
+        import bio.flags
+
+        # Just make sure we have data and didn't blow up.
+        self.assertNotEqual(len(bio.flags.FLAG_DATA), 0)
+        self.assertNotEqual(len(bio.flags.FLAG_CHOICES), 0)
+        self.assertEqual(len(bio.flags.FLAG_DATA), len(bio.flags.FLAG_CHOICES))
+