Permalink
Browse files

Updated tests to reflect new configuration changes. Fixed bug with ~/…

….iron.json.
  • Loading branch information...
1 parent 96ed814 commit 63f1bd479c9844aa462452ccb40ce214d8acbf72 @paddycarver paddycarver committed May 4, 2012
Showing with 3 additions and 13 deletions.
  1. +3 −13 test.py
View
16 test.py
@@ -9,9 +9,9 @@
class TestConfig(unittest.TestCase):
def setUp(self):
# Backup their ~/.iron.json file if it exists
- if os.path.exists(os.path.expanduser(".iron.json")):
- os.rename(os.path.expanduser(".iron.json"),
- os.path.expanduser(".iron.bak.json"))
+ if os.path.exists(os.path.expanduser("~/.iron.json")):
+ os.rename(os.path.expanduser("~/.iron.json"),
+ os.path.expanduser("~/.iron.bak.json"))
# Backup their ./iron.json file if it exists
if os.path.exists("iron.json"):
@@ -39,16 +39,6 @@ def test_fromArgsMissingProjectID(self):
version="0.1.0", product="iron_worker", api_version=2,
host="worker-aws-us-east-1.iron.io", token="TEST")
- def test_fromArgsMissingAPIVersion(self):
- self.assertRaises(ValueError, iron_core.IronClient, name="Test",
- version="0.1.0", product="iron_worker", token="TEST",
- host="worker-aws-us-east-1.iron.io", project_id="TEST")
-
- def test_fromArgsMissingHost(self):
- self.assertRaises(ValueError, iron_core.IronClient, name="Test",
- version="0.1.0", product="iron_worker", token="TEST",
- api_version=2, project_id="TEST")
-
def test_fromArgsProtocolPortMismatch(self):
self.assertRaises(ValueError, iron_core.IronClient, name="Test",
version="0.1.0", product="iron_worker", token="TEST",

0 comments on commit 63f1bd4

Please sign in to comment.