Eclectic Media Git pingstats / f734209
Updated tests to be more NT aware Ariana Giroux 1 year, 4 months ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2626
2727
2828 def test_global_values():
29 assert pingstats.X_COLUMN_SCALE == 11
29 assert pingstats.X_COLUMN_SCALE == 11 if name != 'nt' else 13
3030 assert pingstats.Y_ROW_SCALE == 0
3131
3232
119119 assert type(test_result) == list
120120 assert len(test_result) > 0
121121 assert test_single_string.count(test_address)
122 assert test_single_string.count('tt' and 'time' and 'icmp')
123122
124123 if name == 'nt':
125124 assert test_single_string.count('Received = 1')
125 assert test_single_string.count('TTL' and 'time')
126126 else:
127127 assert test_single_string.count('1 received')
128 assert test_single_string.count('tt' and 'time' and 'icmp')
128129
129130 def test_iter(self):
130131 test_address, test_max = '127.0.0.1', 22