@@ -0,0 +1,919 @@
+import datashape%0Aimport pytest%0A%0A%0Adef test_equal():%0A    assert datashape.integral == datashape.integral%0A    assert datashape.floating != datashape.integral%0A%0A%0Adef test_repr():%0A    assert repr(datashape.integral) == '%7Bintegral%7D'%0A%0A%0Adef test_custom_typeset_repr():%0A    mytypeset = datashape.TypeSet(datashape.int64, datashape.float64)%0A    assert repr(mytypeset).startswith('TypeSet(')%0A    assert repr(mytypeset).endswith('name=None)')%0A%0A%0Adef test_register_already_existing_typeset_fails():%0A    mytypeset = datashape.TypeSet(datashape.int64, datashape.float64,%0A                                  name='foo')%0A    with pytest.raises(TypeError):%0A        datashape.typesets.register_typeset('foo', mytypeset)%0A%0A%0Adef test_getitem():%0A    assert datashape.typesets.registry%5B'integral'%5D == datashape.integral%0A%0A%0Adef test_getitem_non_existent_typeset():%0A    with pytest.raises(KeyError):%0A        datashape.typesets.registry%5B'footypeset'%5D%0A

Add tests for typesets