def test_to(self): if gpkit.units: x = Variable("x", "ft") self.assertEqual(x.to("inch").c.magnitude, 12)