class TestBoxDotComer(mocktest.TestCase): def setUp(self): self.subject = BoxDotComer(email='*****@*****.**', name='Bob Examplar') def test_IsValid(self): assert self.subject.validate() == True def test_InValid(self): subject = BoxDotComer(**{'email':'bob', 'name': 'Bob Examplar'}) assert subject.validate() == False
def test_InValid(self): subject = BoxDotComer(**{'email':'bob', 'name': 'Bob Examplar'}) assert subject.validate() == False
def setUp(self): self.subject = BoxDotComer(email='*****@*****.**', name='Bob Examplar')