예제 #1
0
def test_sampledata_sqlite(datafile):
    """Test existence and openining (not reading) of sqlite sampledata"""
    filename = getattr(sampledata, datafile)
    data = niimpy.open(filename)
    assert isinstance(data, niimpy.Data1)
예제 #2
0
def test_users():
    data = niimpy.open(DATA, tz=TZ)
    data.users()
예제 #3
0
def test_firstlast():
    data = niimpy.open(DATA)
    print(data.first('AwareScreen', user=niimpy.ALL))
    print(data.first('AwareScreen', user=niimpy.ALL))
    print(data.count('AwareScreen', user=niimpy.ALL))
    print(data.exists('AwareScreen', user=niimpy.ALL))
예제 #4
0
def test_user_table_counts():
    data = niimpy.open(DATA)
    print(data.user_table_counts())
예제 #5
0
def test_tables():
    data = niimpy.open(DATA)
    print(data.tables())
예제 #6
0
def test_users():
    data = niimpy.open(DATA)
    data.users()
예제 #7
0
def test_connect():
    data = niimpy.open(DATA)
    data.users()