def test_get_environments(self): expected = ['master', 'system', 'course'] self.assertListEqual(expected, migrator.ENVIRONMENTS) self.assertListEqual(expected, migrator.get_environments()) self.assertEqual(migrator.ENVIRONMENTS, migrator.get_environments())
def test_get_environments_all(self): self.assertEqual(['master', 'system', 'course'], migrator.get_environments( ['course', 'master', 'system']))
def test_get_environments_all(self): self.assertEqual( ['master', 'system', 'course'], migrator.get_environments(['course', 'master', 'system']) )
def test_get_environments_empty(self): self.assertEqual([], migrator.get_environments([]))