File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ import unittest
2
+ import random_names
3
+
4
+
5
+ class Test (unittest .TestCase ):
6
+
7
+ def test_names (self ):
8
+ for i in range (100 ):
9
+ FirstName = random_names .First ()
10
+ print (f"{ FirstName = } " )
11
+ self .assertIsNotNone (FirstName )
12
+
13
+ LastName = random_names .Last ()
14
+ print (f"{ LastName = } " )
15
+ self .assertIsNotNone (LastName )
16
+
17
+ FullName = random_names .Full ()
18
+ print (f"{ FullName = } " )
19
+ self .assertIsNotNone (FullName )
20
+
21
+ Company = random_names .Company ()
22
+ print (f"{ Company = } " )
23
+ self .assertIsNotNone (Company )
24
+
25
+ State = random_names .States ()
26
+ print (f"{ State = } " )
27
+ self .assertIsNotNone (State )
28
+
29
+ StateCode = random_names .StateCode ()
30
+ print (f"{ StateCode = } " )
31
+ self .assertIsNotNone (StateCode )
32
+
33
+ Address = random_names .Address ()
34
+ print (f"{ Address = } " )
35
+ self .assertIsNotNone (Address )
36
+
37
+ Place = random_names .Places ()
38
+ print (f"{ Place = } " )
39
+ self .assertIsNotNone (Place )
40
+
41
+ Country = random_names .Country ()
42
+ print (f"{ Country = } " )
43
+ self .assertIsNotNone (Country )
44
+
45
+
46
+ if __name__ == '__main__' :
47
+ unittest .main ()
You can’t perform that action at this time.
0 commit comments