-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskip_test.py
More file actions
26 lines (20 loc) · 865 Bytes
/
Copy pathskip_test.py
File metadata and controls
26 lines (20 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import unittest
import datetime
class Test_unitTest__skip_method(unittest.TestCase):
#@unittest.SkipTest #Skip method using decorator
def test_search(self):
print('Normal search started and successfull ...')
def test_advanced_search(self):
print('Advanced search started and successfull ...')
@unittest.skip("Prepaid not required ..Hence skip the method ") #skip the method with reason
def test_Prepaid(self):
print('Preapaid started and successfull ...')
@unittest.skipIf(datetime.datetime.now().month!=2,'Month is not feb ..Hence skip the method ')
def test_Post(self):
print('PostPaid started and successfull ...')
def test_loginbymain(self):
print ('log in by gmail ')
def test_loginbytwiter(self):
print('login by twiter')
if __name__ == "__main__":
unittest.main()