def test_ConvertPriority_Given4_Returns1(self):
     assert convert_priority(4) == 1
 def test_ConvertPriority_GivenUiValues_ReturnsApiValues(self):
     assert convert_priority(1) == 4
     assert convert_priority(2) == 3
     assert convert_priority(3) == 2
     assert convert_priority(4) == 1
 def test_ConvertPriority_GivenString_DefaultsToNoPriority(self):
     assert convert_priority('4') == 1
 def test_ConvertPriority_Given0_DefaultsToNoPriority(self):
     assert convert_priority(0) == 1
 def test_ConvertPriority_GivenOutOfRange_DefaultsToNoPriority(self):
     assert convert_priority(5) == 1