summaryrefslogtreecommitdiff
path: root/morphlib/workspace_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-06 15:09:06 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-06 19:04:12 +0000
commita0fe3ebf760839ac6b95ff888ed79e0b88dd5f0e (patch)
treef33103b14cb5c2424fa6b0a3e8827f84affdb18f /morphlib/workspace_tests.py
parentbb6eecfe7dee30191f1509645a9de37bcd84195e (diff)
downloadmorph-a0fe3ebf760839ac6b95ff888ed79e0b88dd5f0e.tar.gz
Fix assert in unit test
We're clearly comparing two values for equality rather than asserting that the type of an object is not False, since that would make no sense at all.
Diffstat (limited to 'morphlib/workspace_tests.py')
-rw-r--r--morphlib/workspace_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/workspace_tests.py b/morphlib/workspace_tests.py
index b25be35e..9eef1053 100644
--- a/morphlib/workspace_tests.py
+++ b/morphlib/workspace_tests.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2013 Codethink Limited
+# Copyright (C) 2013-2014 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -97,7 +97,7 @@ class WorkspaceTests(unittest.TestCase):
url = 'test:morphs'
branch = 'my/new/thing'
sb = ws.create_system_branch_directory(url, branch)
- self.assertTrue(type(sb), morphlib.sysbranchdir.SystemBranchDirectory)
+ self.assertEqual(type(sb), morphlib.sysbranchdir.SystemBranchDirectory)
def test_lists_created_system_branches(self):
self.create_it()