diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-02-18 21:21:52 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-19 15:38:49 +0000 |
commit | 8c0ba8d9aff6dec6e458739aafb79b185e951afd (patch) | |
tree | c313aee588e64a3f918f564fda203c4d2cfc9d82 /bitbake/lib/toaster/toastergui/tests.py | |
parent | 913e9b1cbc54a6363f08a4e15c64188eab91aeef (diff) | |
download | poky-8c0ba8d9aff6dec6e458739aafb79b185e951afd.tar.gz |
bitbake: toaster: toastergui Fix invalid char test and implementation
This test was passing but because the assertion was the wrong way round
and should have expected the first one to pass and second one to fail,
in reality both were failing as the method for checking the invalid char
was incorrect.
(Bitbake rev: 932a92b8130d4815656dc885f0c6e4afa4502022)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tests.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 1b6e78d517..4e420ea269 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py | |||
@@ -155,7 +155,7 @@ class ViewTests(TestCase): | |||
155 | response = self.client.post(reverse('xhr_importlayer'), args) | 155 | response = self.client.post(reverse('xhr_importlayer'), args) |
156 | data = json.loads(response.content) | 156 | data = json.loads(response.content) |
157 | self.assertEqual(response.status_code, 200) | 157 | self.assertEqual(response.status_code, 200) |
158 | self.assertNotEqual(data["error"], "ok") | 158 | self.assertEqual(data["error"], "ok") |
159 | 159 | ||
160 | #Test to verify import of a layer successful | 160 | #Test to verify import of a layer successful |
161 | args['name'] = "meta-oe" | 161 | args['name'] = "meta-oe" |