This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'patch-1' of git://github.com/Stvad/wifi into Stvad-patch-1
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from unittest import TestCase | ||
|
||
from wifi.scan import Cell | ||
|
||
class CorrectInitTest(TestCase): | ||
fields = {"ssid": None, | ||
"bitrates": [], | ||
"address": None, | ||
"channel": None, | ||
"encrypted": False, | ||
"encryption_type": None, | ||
"frequency": None, | ||
"mode": None, | ||
"quality": None, | ||
"signal": None} | ||
|
||
|
||
def test_empty_init(self): | ||
tcell = Cell() | ||
|
||
for field, value in self.fields.iteritems(): | ||
self.assertEqual(value, getattr(tcell, field)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters