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))