示例#1
0
文件: tests.py 项目: jvgriffis/OTM2
    def test_species_for_region_lookup(self):
        northeast = species_codes_for_regions(['NoEastXXX'])
        self.assertEqual(258, len(northeast))

        south = species_codes_for_regions(['PiedmtCLT'])
        self.assertEqual(244, len(south))

        combined = species_codes_for_regions(['NoEastXXX', 'PiedmtCLT'])
        self.assertEqual(338, len(combined))

        combined_set = set(combined)
        self.assertEqual(len(combined), len(combined_set),
                         "Getting the species for more than one region "
                         "should result in a unique set of otm_codes")
示例#2
0
文件: tests.py 项目: jvgriffis/OTM2
 def test_species_for_none_region_lookup(self):
     self.assertIsNone(species_codes_for_regions(None))