def testCaseInsensitiveTextFieldNameMatches(self):
     field = SimpleTextField('FirstName')
     self.assertTrue(field.matches_text_name('FirstName'))
     self.assertTrue(field.matches_text_name('firstname'))
     self.assertFalse(field.matches_text_name('LastName'))
 def testTextFieldNameWithSpaceMatches(self):
     field = SimpleTextField('First Name')
     self.assertTrue(field.matches_text_name('First Name'))
     self.assertTrue(field.matches_text_name('first name'))
     self.assertFalse(field.matches_text_name('Last Name'))