def test_with_float(self): with self.assertRaises(TypeError): safe_3D_point(1.1)
def test_with_str(self): with self.assertRaises(TypeError): safe_3D_point("abc")
def test_2D_point(self): self.assertEqual((1, 2, 0), safe_3D_point((1, 2)))
def test_1D_point(self): with self.assertRaises(ValueError): safe_3D_point((1, ))
def test_with_str(): with pytest.raises(DXFTypeError): safe_3D_point("abc")
def test_3D_point(self): self.assertEqual((1, 2, 3), safe_3D_point((1, 2, 3)))
def test_1D_point(): with pytest.raises(DXFValueError): safe_3D_point((1, ))
def test_with_float(): with pytest.raises(DXFTypeError): safe_3D_point(1.1)
def test_3D_point(): assert (1, 2, 3) == safe_3D_point((1, 2, 3))
def test_2D_point(): assert (1, 2, 0) == safe_3D_point((1, 2))
def test_1D_point(self): with self.assertRaises(ValueError): safe_3D_point((1,))