def test_ok_only_image_name(self):
     args = generate_args('jboss/wildfly', None, None, None)
     status = HistoryCLIParser.verify_args(args)
     self.assertEqual(status, 0)
 def test_both_arguments_with_is_fp(self):
     empty_args = generate_args(None, '43a6ca974743', None, 'openldap:2.2.20')
     status = HistoryCLIParser.verify_args(empty_args)
     self.assertEqual(status, 3)
 def test_missing_image_name_with_is_fp(self):
     args = generate_args(None, None, None, 'openldap:2.2.20')
     status = HistoryCLIParser.verify_args(args)
     self.assertEqual(status, 4)
 def test_ok_only_image_name(self):
     args = generate_args('jboss/wildfly', None, None, None)
     status = HistoryCLIParser.verify_args(args)
     self.assertEqual(status, 0)
 def test_missing_image_name_with_is_fp(self):
     args = generate_args(None, None, None, 'openldap:2.2.20')
     status = HistoryCLIParser.verify_args(args)
     self.assertEqual(status, 4)
 def test_both_arguments_with_is_fp(self):
     empty_args = generate_args(None, '43a6ca974743', None, 'openldap:2.2.20')
     status = HistoryCLIParser.verify_args(empty_args)
     self.assertEqual(status, 3)
 def test_ok_args(self):
     empty_args = generate_args('jboss/wildfly')
     status = HistoryCLIParser.verify_args("dagda.py history", empty_args)
     self.assertEqual(status, 0)
 def test_empty_args(self):
     empty_args = generate_args(None)
     status = HistoryCLIParser.verify_args("dagda.py history", empty_args)
     self.assertEqual(status, 1)