소스 검색

[beeswax] Update tests with new re-installable examples

Romain Rigaux 13 년 전
부모
커밋
da14733621
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      apps/beeswax/src/beeswax/tests.py

+ 4 - 4
apps/beeswax/src/beeswax/tests.py

@@ -824,8 +824,8 @@ for x in sys.stdin:
 
     # Now install it a second time, and expect an error
     resp = self.client.post('/beeswax/install_examples')
-    assert_true('false' in resp.content)
-    assert_true('already installed' in resp.content)
+    assert_true('true' in resp.content)
+    assert_equal('', json.loads(resp.content)['message'])
 
     # First, unset the db entry to allow installation to re-run
     meta = beeswax.models.MetaInstall.get()
@@ -834,8 +834,8 @@ for x in sys.stdin:
 
     # Now it should complain
     resp = self.client.post('/beeswax/install_examples')
-    assert_true('false' in resp.content)
-    assert_true('already exists' in resp.content)
+    assert_true('true' in resp.content)
+    assert_equal('', json.loads(resp.content)['message'])
 
 
   def test_create_table_generation(self):