예제 #1
0
 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())
예제 #2
0
 def test_get_environments_all(self):
     self.assertEqual(['master', 'system', 'course'],
                      migrator.get_environments(
                          ['course', 'master', 'system']))
예제 #3
0
 def test_get_environments_all(self):
     self.assertEqual(
         ['master', 'system', 'course'],
         migrator.get_environments(['course', 'master', 'system'])
     )
예제 #4
0
 def test_get_environments_empty(self):
     self.assertEqual([], migrator.get_environments([]))
예제 #5
0
 def test_get_environments_empty(self):
     self.assertEqual([], migrator.get_environments([]))