Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 9, 2016
1 parent f078ecb commit 13ba8d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/config/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ def test_generates_and_loads_macaroon_secret_key(self):
"was: %r" % (config.macaroon_secret_key,)
)

def test_load_fails_if_macaroon_secret_key_missing(self):
def test_load_suceeds_if_macaroon_secret_key_missing(self):
self.generate_config_and_remove_lines_containing("macaroon")
with self.assertRaises(Exception):
HomeServerConfig.load_config("", ["-c", self.file])
config1 = HomeServerConfig.load_config("", ["-c", self.file])
config2 = HomeServerConfig.load_config("", ["-c", self.file])
self.assertEqual(config1.macaroon_secret_key, config2.macaroon_secret_key)

def generate_config(self):
HomeServerConfig.load_config("", [
Expand Down

0 comments on commit 13ba8d8

Please sign in to comment.