summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-10 12:21:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-17 14:41:43 +0100
commit50f9e203bbcda66e0986639f115b69ed1e82d34e (patch)
tree8537e0c1998fe68775280c7de134255c64c4d1ec /bitbake/lib
parent552b1feeef678c0eaa35917a374666bcfb0d4ff7 (diff)
downloadpoky-50f9e203bbcda66e0986639f115b69ed1e82d34e.tar.gz
bitbake: toaster: simplify testcase code
Replaced 2 asserts with one in test_single_layersource method of ProjectLVSelectionTestCase. (Bitbake rev: 54131366ac2a8fc7866fb1293f5cd0e3da13ea46) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/orm/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/orm/tests.py b/bitbake/lib/toaster/orm/tests.py
index 6837038781..a57a62c544 100644
--- a/bitbake/lib/toaster/orm/tests.py
+++ b/bitbake/lib/toaster/orm/tests.py
@@ -162,7 +162,6 @@ class ProjectLVSelectionTestCase(TestCase):
162 setup_lv_tests(self) 162 setup_lv_tests(self)
163 163
164 def test_single_layersource(self): 164 def test_single_layersource(self):
165 compatible_layerversions = self.project.compatible_layerversions() 165 compat_lv = self.project.compatible_layerversions()
166 self.assertTrue(len(compatible_layerversions) == 1) 166 self.assertEqual(list(compat_lv), [self.lver])
167 self.assertTrue(compatible_layerversions[0] == self.lver)
168 167