Beispiel #1
0
 def test_convert_valid_param3(self):
     self.assertEqual(_CurrencyCheckerValidator.validate_convert(self.valid_code, ['amount', 'source']),  self.valid_code)
Beispiel #2
0
 def test_convert_invalid_regex_3_param_3(self):
     with self.assertRaises(argparse.ArgumentError):
         _CurrencyCheckerValidator.validate_convert(self.invalid_letters_and_digits, ['amount', 'source'])
Beispiel #3
0
 def test_convert_valid_param1(self):
     self.assertEqual(_CurrencyCheckerValidator.validate_convert(self.valid_amount, []), self.valid_amount)
Beispiel #4
0
 def test_convert_invalid_regex_2_param_2(self):
     with self.assertRaises(argparse.ArgumentError):
         _CurrencyCheckerValidator.validate_convert(self.invalid_code_digits, ['amount'])
Beispiel #5
0
 def test_convert_invalid_regex_2_param_1(self):
     with self.assertRaises(argparse.ArgumentError):
         _CurrencyCheckerValidator.validate_convert(self.invalid_amount_two_decimal_dots, [])