Esempio n. 1
0
 def test_a(self):
     """Test the execution of a single Django command."""
     command_lines = CommandLinesRunner(StubCommandsFactory())
     parameters_list = ['vss_permissions']
     command_lines.execute(parameters_list)
     self.assertEqual(StubCommand.executed_commands,
         ['bin/django vss_permissions'])
Esempio n. 2
0
 def test_b(self):
     """Test the execution of a multiple Django command."""
     command_lines = CommandLinesRunner(StubCommandsFactory())
     parameters_list = ['vss_permissions', 'loaddata lizard_fewsnorm']
     command_lines.execute(parameters_list)
     self.assertEqual(StubCommand.executed_commands,
         ['bin/django vss_permissions',
          'bin/django loaddata lizard_fewsnorm'])