@@ -0,0 +1,1608 @@
+import pytest%0A%0Afrom pelops.datasets.str_sa import get_sa_cam_id%0Afrom pelops.datasets.str_sa import get_sa_car_id%0Afrom pelops.datasets.str_sa import int_from_string%0Afrom pelops.datasets.str_sa import STR_SA%0A%0A%0Adef test_str_sa_construction_raise():%0A    %22%22%22 Test that STR_SA() raises an error when not given a directory. %22%22%22%0A    with pytest.raises(ValueError):%0A        STR_SA()%0A%0A%0Adef test_int_from_string():%0A    %22%22%22 Test int_from_string() %22%22%22%0A    TEST_STRINGS = (%0A        # String, Args, Answer%0A        (%22test_010_test%22, (%22test_%22, 3), 10),%0A        (%22test_010_test%22, (%22FAIL_%22, 3), None),%0A        (%22test_010%22,      (%22test_%22, 3), 10),%0A        (%22test_11_test%22,  (%22test_%22, 2), 11),%0A        (%22010_test%22,      (%22%22,      3), 10),%0A    )%0A%0A    for test_string, args, answer in TEST_STRINGS:%0A        assert answer == int_from_string(test_string, args%5B0%5D, args%5B1%5D)%0A%0A%0Adef test_get_sa_cam_id():%0A    %22%22%22 Test get_sa_cam_id() %22%22%22%0A    TEST_STRINGS = (%0A        # String, Answer%0A        (%22match00001_cam02.png%22,      2),%0A        (%22match00001_cam01_mask.png%22, 1),%0A        (%22match00010_cam01.png%22,      1),%0A        (%22match00011_cam02_mask.png%22, 2),%0A    )%0A%0A    for test_string, answer in TEST_STRINGS:%0A        assert answer == get_sa_cam_id(test_string)%0A%0A%0Adef test_get_sa_car_id():%0A    %22%22%22 Test get_sa_car_id() %22%22%22%0A    TEST_STRINGS = (%0A        # String, Answer%0A        (%22match00001_cam02.png%22,      1),%0A        (%22match00001_cam01_mask.png%22, 1),%0A        (%22match00010_cam01.png%22,      10),%0A        (%22match00011_cam02_mask.png%22, 11),%0A    )%0A%0A    for test_string, answer in TEST_STRINGS:%0A        assert answer == get_sa_car_id(test_string)%0A

Add tests for STR_SA()