@@ -0,0 +1,727 @@
+import numpy as np%0Aimport pandas as pd%0Afrom numpy.testing import assert_equal%0Afrom pylinkparse import Raw%0Afrom pylinkparse.event import find_custom_events, Discrete%0A%0A%0Apath = 'pylinkparse/tests/data/'%0Afname = path + 'test_raw.asc'%0A%0A%0Adef test_find_custom_events():%0A    %22%22%22Test finding user-defined events%22%22%22%0A    raw = Raw(fname)%0A    events = find_custom_events(raw, 'user-event', 1)%0A    assert_equal(len(events), 25)%0A    assert_equal(set(events%5B:, 1%5D), set(%5B1%5D))%0A%0A%0Adef test_discrete():%0A    %22%22%22Test discrete events container%22%22%22%0A    dis = Discrete()%0A    dis.extend(%5Bnp.array(%5B1%5D), pd.DataFrame(), 'aaaa'%5D)%0A    myrepr = '%25s' %25 dis%0A    checksum = sum(%5Bint(d) for d in myrepr if d.isdigit()%5D)%0A    assert_equal(checksum, 5 + len(dis))%0A

improve Discrete tests