-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestDetector.py
More file actions
57 lines (47 loc) · 1.18 KB
/
Copy pathTestDetector.py
File metadata and controls
57 lines (47 loc) · 1.18 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
>>> from class_logentry import logentry
>>> from class_cachelogs import cachelogs
>>> from class_cache import cache
>>> le1 = logentry("found", 221212, "t4tc")
>>> le2 = logentry("found", 231212, "tftc")
>>> le3 = logentry("not found", 211212, "ooooch...")
>>> cache1 = cache("gctesti", "testcache", 2, 25, "this is the testcache")
>>> cache1.printcache()
Gccode : gctesti
Name : testcache
Dfficulty : 2
Terrain : 25
Description : this is the testcache
>>> log1 = cachelogs(cache1)
>>> log1.add_logentry(le3)
>>> log1.print()
Gccode : gctesti
Name : testcache
Dfficulty : 2
Terrain : 25
Description : this is the testcache
<BLANKLINE>
logtype : not found
logdate : 211212
logtext : ooooch...
<BLANKLINE>
>>> log1.NoticeDupes()
No Dupe's detected
>>> log1.add_logentry(le1)
>>> log1.NoticeDupes()
Dupes detected!!!
Gccode : gctesti
Name : testcache
Dfficulty : 2
Terrain : 25
Description : this is the testcache
It's logged with the following logs:
logtype : not found
logdate : 211212
logtext : ooooch...
<BLANKLINE>
logtype : found
logdate : 221212
logtext : t4tc
<BLANKLINE>
"""