예제 #1
0
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
예제 #2
0
 def test_InValid(self):
     subject = BoxDotComer(**{'email':'bob', 'name': 'Bob Examplar'})
     assert subject.validate() == False
예제 #3
0
 def setUp(self):
     self.subject = BoxDotComer(email='*****@*****.**', name='Bob Examplar')