summaryrefslogtreecommitdiff
path: root/startop/scripts/app_startup/lib/adb_utils_test.py
blob: e590fed568e3824d1718adea03be0e3c52272030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import adb_utils

# pip imports
import pytest

def test_parse_time_to_milliseconds():
  # Act
  result1 = adb_utils.parse_time_to_milliseconds('+1s7ms')
  result2 = adb_utils.parse_time_to_milliseconds('+523ms')

  # Assert
  assert result1 == 1007
  assert result2 == 523

if __name__ == '__main__':
  pytest.main()