Change in pysim[master]: tests/test_utils.py: update expectations for format_xplmn_w_act()

fixeria gerrit-no-reply at lists.osmocom.org
Fri Mar 12 00:13:32 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23330 )


Change subject: tests/test_utils.py: update expectations for format_xplmn_w_act()
......................................................................

tests/test_utils.py: update expectations for format_xplmn_w_act()

Change-Id: I520328e3490cc3a333d2daad84e745d115196626
---
M tests/test_utils.py
1 file changed, 10 insertions(+), 11 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/30/23330/1

diff --git a/tests/test_utils.py b/tests/test_utils.py
index 0df205a..bcf6140 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -69,17 +69,16 @@
 
 	def testFormatxPlmn_w_act(self):
 		input_str = "92f501800092f5508000ffffff0000ffffff0000ffffff0000ffffff0000ffffff0000ffffff0000ffffff0000ffffff0000"
-		expected = '''92f5018000 # MCC: 295 MNC:  10 AcT: UTRAN
-92f5508000 # MCC: 295 MNC:   5 AcT: UTRAN
-ffffff0000 # unused
-ffffff0000 # unused
-ffffff0000 # unused
-ffffff0000 # unused
-ffffff0000 # unused
-ffffff0000 # unused
-ffffff0000 # unused
-ffffff0000 # unused
-'''
+		expected  = "\t92f5018000 # MCC: 295 MNC: 010 AcT: UTRAN\n"
+		expected += "\t92f5508000 # MCC: 295 MNC: 005 AcT: UTRAN\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
+		expected += "\tffffff0000 # unused\n"
 		self.assertEqual(utils.format_xplmn_w_act(input_str), expected)
 
 if __name__ == "__main__":

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23330
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I520328e3490cc3a333d2daad84e745d115196626
Gerrit-Change-Number: 23330
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210312/63545004/attachment.htm>


More information about the gerrit-log mailing list