Пример #1
0
 def test_script_info_for_app_nonexistent_app(self):
     with self.assertRaises(KeyError):
         script_info_for_app('some-nonexistent-app')
Пример #2
0
 def test_script_info_for_app_valid_input(self):
     script_info_for_app('app-a')
     spec_line = self.last_client_output.splitlines()[3]
     self.assertIn('A script description', spec_line)
     self.assertIn('example', spec_line)
Пример #3
0
 def test_script_info_for_app_no_scripts(self):
     script_info_for_app('app-c')
     self.assertEqual(self.last_client_output, 'No scripts registered for app app-c')
Пример #4
0
 def test_script_info_for_app_nonexistent_app(self):
     with self.assertRaises(KeyError):
         script_info_for_app('some-nonexistent-app')
Пример #5
0
 def test_script_info_for_app_valid_input(self):
     script_info_for_app('app-a')
     spec_line = self.last_client_output.splitlines()[3]
     self.assertIn('A script description', spec_line)
     self.assertIn('example', spec_line)
Пример #6
0
 def test_script_info_for_app_no_scripts(self):
     script_info_for_app('app-c')
     self.assertEqual(self.last_client_output,
                      'No scripts registered for app app-c')