Skip to content

Commit

Permalink
Refs. #25. Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkiro committed Sep 25, 2014
1 parent 011111a commit d73c4e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@
from tests.util import mock_open


class MockData(list):
def close(self):
pass


class TestPasswdLoad(unittest.TestCase):
fp = "pyzord.passwd"
alice_key = "alice_key"
bob_key = "bob_key"

def setUp(self):
super(TestPasswdLoad, self).setUp()
self.data = []
self.data = MockData()
self.exists = True
real_exists = os.path.exists
patch("pyzor.config.open", return_value=self.data,
Expand Down Expand Up @@ -74,7 +79,7 @@ class TestAccessLoad(unittest.TestCase):

def setUp(self):
super(TestAccessLoad, self).setUp()
self.data = []
self.data = MockData()
self.exists = True
real_exists = os.path.exists
patch("pyzor.config.open", return_value=self.data,
Expand Down

0 comments on commit d73c4e5

Please sign in to comment.