Ejemplo n.º 1
0
 def test_get_supported_frameworks_nosuchopt(self, mock_listdir,
                                             mock_dirname):
     self.assertEqual([], Utils.get_supported_frameworks())
     self.assertEqual(mock_dirname.call_count, 2)
     self.assertEqual(mock_listdir.call_count, 1)
Ejemplo n.º 2
0
 def take_action(self, parsed_args):
     self.framework_tables = PrettyTable(["Frameworks"])
     self.supported_frameworks = Utils.get_supported_frameworks()
     self.log_frameworks(self.supported_frameworks)
Ejemplo n.º 3
0
 def test_get_supported_frameworks(self, mock_listdir, mock_dirname,
                                   mock_conf):
     self.assertEqual(['first', 'second'], Utils.get_supported_frameworks())
     self.assertEqual(mock_dirname.call_count, 2)
     self.assertEqual(mock_conf.call_count, 2)
     self.assertEqual(mock_listdir.call_count, 1)