Ejemplo n.º 1
0
def test_set_datetime_should_fail_for_non_datetime_value_input():
    with pytest.raises(ValueError):
        LPGAN_API_Tx.set_datetime(2019)
Ejemplo n.º 2
0
def test_set_datetime_should_create_valid_string():
    d = dt.datetime(year=2019, month=10, day=25, hour=10, minute=59, second=48)
    assert 'set_datetime(\"2019-10-25T10:59:48Z\")\r\n' == LPGAN_API_Tx.set_datetime(
        d)