def test_special_characters_False(self): for c in list('!"£$%'): self.assertFalse( BetfairOrder.is_valid_customer_order_ref_character((c)))
def test_special_characters_True(self): for c in VALID_BETFAIR_CUSTOMER_ORDER_REF_CHARACTERS: self.assertTrue( BetfairOrder.is_valid_customer_order_ref_character((c)))
def test_2letters_False(self): self.assertFalse( BetfairOrder.is_valid_customer_order_ref_character("aB")) self.assertFalse( BetfairOrder.is_valid_customer_order_ref_character("CD"))
def test_digits_True(self): # string.digits contains digits 0-9 for c in string.digits: self.assertTrue( BetfairOrder.is_valid_customer_order_ref_character(c))
def test_letters_True(self): # ascii_letters contains a-z and A-Z for c in string.ascii_letters: self.assertTrue( BetfairOrder.is_valid_customer_order_ref_character(c))