Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
infothrill committed Oct 28, 2013
1 parent 676e2bc commit 4e770a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bitsnoop/tests/fakeskan.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ def setUpClass(cls):
cls.url = "http://localhost:8000/api/fakeskan.php"
cls.server.start()

def test_fakeskan(self):
def test_fakeskan_input_validation(self):
fk = fakeskan.Fakeskan(self.url)
self.assertRaises(ValueError, fk, "sdsdg")
self.assertRaises(ValueError, fk, None)

def test_fakeskan_connections(self):
fk = fakeskan.Fakeskan(self.url)
test_data = {
"03DBF6EBC059CD97ACAE7CAF308A0E050A7EC51A": fakeskan.ERROR,
Expand Down

0 comments on commit 4e770a3

Please sign in to comment.