示例#1
0
 def test_finds_any_unitted(self):
     self.assertTrue(
         have_some_units(self.unit_array, self.plain_array,
                         self.plain_scalar))
     self.assertTrue(
         have_some_units(self.plain_array, self.unit_array,
                         self.plain_scalar))
     self.assertTrue(
         have_some_units(self.unit_scalar, self.plain_array,
                         self.plain_scalar))
     self.assertTrue(
         have_some_units(self.plain_array, self.unit_scalar,
                         self.plain_scalar))
 def test_finds_any_unitted(self):
     self.assertTrue(
         have_some_units(
             self.unit_array,
             self.plain_array,
             self.plain_scalar))
     self.assertTrue(
         have_some_units(
             self.plain_array,
             self.unit_array,
             self.plain_scalar))
     self.assertTrue(
         have_some_units(
             self.unit_scalar,
             self.plain_array,
             self.plain_scalar))
     self.assertTrue(
         have_some_units(
             self.plain_array,
             self.unit_scalar,
             self.plain_scalar))
 def test_does_not_find_mixed_plain(self):
     self.assertFalse(have_some_units(self.plain_array, self.plain_scalar))
 def test_finds_mixed_scalar_array(self):
     self.assertTrue(have_some_units(self.unit_array, self.unit_scalar))
 def test_finds_multiple(self):
     self.assertTrue(have_some_units(self.unit_array, self.unit_array))
     self.assertTrue(have_some_units(self.unit_scalar, self.unit_scalar))
 def test_finds_one(self):
     self.assertTrue(have_some_units(self.unit_array))
     self.assertTrue(have_some_units(self.unit_scalar))
示例#7
0
 def test_does_not_find_mixed_plain(self):
     self.assertFalse(have_some_units(self.plain_array, self.plain_scalar))
示例#8
0
 def test_finds_mixed_scalar_array(self):
     self.assertTrue(have_some_units(self.unit_array, self.unit_scalar))
示例#9
0
 def test_finds_multiple(self):
     self.assertTrue(have_some_units(self.unit_array, self.unit_array))
     self.assertTrue(have_some_units(self.unit_scalar, self.unit_scalar))
示例#10
0
 def test_finds_one(self):
     self.assertTrue(have_some_units(self.unit_array))
     self.assertTrue(have_some_units(self.unit_scalar))