From 4ddd28ad5874d2a213bf6e4acae02ce14062a9d7 Mon Sep 17 00:00:00 2001
From: Martijn Vermaat <martijn@vermaat.name>
Date: Wed, 18 Sep 2013 12:59:55 +0000
Subject: [PATCH] Update unit tests to pass with latest NCBI data

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@743 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
---
 tests/test_services_soap.py | 22 +++++++++++-----------
 tests/test_website.py       |  4 ++--
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/tests/test_services_soap.py b/tests/test_services_soap.py
index 69014c8c..02a1bcf1 100644
--- a/tests/test_services_soap.py
+++ b/tests/test_services_soap.py
@@ -328,8 +328,8 @@ class TestServicesSoap():
         """
         r = self.client.service.getdbSNPDescriptions('rs9919552')
         assert 'NC_000011.9:g.111959625C>T' in r.string
-        assert 'NG_012337.1:g.7055C>T' in r.string
-        assert 'NM_003002.2:c.204C>T' in r.string
+        assert 'NG_012337.2:g.7055C>T' in r.string
+        assert 'NM_003002.3:c.204C>T' in r.string
         assert 'NP_002993.1:p.Ser68=' in r.string
 
     def test_gettranscripts(self):
@@ -496,8 +496,8 @@ class TestServicesSoap():
         Running getTranscriptsAndInfo on a chromosomal slice should include
         chromosomal positions.
 
-        slice: 48284000 - 48259456 (COL1A1 with 5001 and 2001 borders)
-        translation start: 48284000 - 5001 + 1 = 48279000
+        slice: 48284003 - 48259456 (COL1A1 with 5001 and 2001 borders)
+        translation start: 48284003 - 5001 + 1 = 48279003
         translation end: 48259456 + 2001 = 48261457
         """
         ud = str(self.client.service.sliceChromosomeByGene('COL1A1', 'human', 5000, 2000))
@@ -508,18 +508,18 @@ class TestServicesSoap():
         for t in r.TranscriptInfo:
             if t.name != 'COL1A1_v001':
                 continue
-            assert_equal(t.cTransStart, '-126')
+            assert_equal(t.cTransStart, '-129')
             assert_equal(t.gTransStart, 5001)
-            assert_equal(t.chromTransStart, 48279000)
+            assert_equal(t.chromTransStart, 48279003)
             assert_equal(t.cTransEnd, '*1406')
-            assert_equal(t.gTransEnd, 22544)
+            assert_equal(t.gTransEnd, 22547)
             assert_equal(t.chromTransEnd, 48261457)
-            assert_equal(t.sortableTransEnd, 5801)
+            assert_equal(t.sortableTransEnd, 4883)
             assert_equal(t.cCDSStart, '1')
-            assert_equal(t.gCDSStart, 5127)
+            assert_equal(t.gCDSStart, 5130)
             assert_equal(t.chromCDSStart, 48278874)
-            assert_equal(t.cCDSStop, '4395')
-            assert_equal(t.gCDSStop, 21138)
+            assert_equal(t.cCDSStop, '3477')
+            assert_equal(t.gCDSStop, 21141)
             assert_equal(t.chromCDSStop, 48262863)
 
     @slow
diff --git a/tests/test_website.py b/tests/test_website.py
index b2a87d4f..4b323f9e 100644
--- a/tests/test_website.py
+++ b/tests/test_website.py
@@ -321,8 +321,8 @@ class TestWSGI():
         r.mustcontain('0 Errors',
                       '0 Warnings',
                       'NC_000011.9:g.111959625C>T',
-                      'NG_012337.1:g.7055C>T',
-                      'NM_003002.2:c.204C>T',
+                      'NG_012337.2:g.7055C>T',
+                      'NM_003002.3:c.204C>T',
                       'NP_002993.1:p.Ser68=')
 
     def test_snp_converter_invalid(self):
-- 
GitLab