Esempio n. 1
0
    def test_missing_bibstem(self):
        data = { "year":'2006',
                 "volume":"73",
                 "page":"100407",
                 "author":"'t Hooft",
                 "bibcode":'2006PhRvB..73j0407T',
               }

        self.assertEqual(make_bibcode(data), None)
Esempio n. 2
0
    def test_praconf(self):
        data = { "year":"2009",
        "bibstem":'pra..conf',
        "page":'E56',
        "author":'S',
        "bibcode":'2009pra..confE..56S',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 3
0
    def test_PhRB_missing_year_author(self):
        data = { "year":'....',
        "bibstem":'PhRvB',
        "volume":"73",
        "page":"100407",
        "bibcode":'....PhRvB..73j0407.',
        }

        self.assertEqual(make_bibcode(data), None)
Esempio n. 4
0
    def test_unicode_author(self):
        data = { "year":"2006",
                 "bibstem":'PhRvB',
                 "volume":"73",
                 "page":"100407",
                 "author":u'\xc0stra',
                 "bibcode":'2006PhRvB..73j0407A',
               }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 5
0
    def test_entity_author(self):
        data = { "year":"2006",
        "bibstem":'PhRvB',
        "volume":"73",
        "page":"100407",
        "author":"Östra",
        "bibcode":'2006PhRvB..73j0407O',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 6
0
    def test_praconf(self):
        data = {
            "year": "2009",
            "bibstem": 'pra..conf',
            "page": 'E56',
            "author": 'S',
            "bibcode": '2009pra..confE..56S',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 7
0
    def test_PhRvL_2(self):
        data = { "year":"2006",
        "bibstem":'PhRvL',
        "volume":"96",
        "page":"295701",
        "author":'Grünwald, Michael',
        "bibcode":'2006PhRvL..96C5701G',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 8
0
    def test_PhRB_missing_year_author(self):
        data = {
            "year": '....',
            "bibstem": 'PhRvB',
            "volume": "73",
            "page": "100407",
            "bibcode": '....PhRvB..73j0407.',
        }

        self.assertEqual(make_bibcode(data), None)
Esempio n. 9
0
    def test_missing_year_author(self):
        data = { "year":'....',
        "bibstem":'JHEP',
        "volume":"1009",
        "page":"31",
        "author":'B',
        "bibcode":'2010JHEP...09..031B',
        }

        self.assertEqual(make_bibcode(data), None)
Esempio n. 10
0
    def test_JGR(self):
        data = { "year":"2007",
        "bibstem":'JGR..',
        "volume":"112",
        "page":'B06410',
        "author":'V',
        "bibcode":'2007JGRB..11206410V',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 11
0
    def test_JOptA(self):
        data = { "year":"2000",
        "bibstem":'JOptA',
        "volume":"2",
        "page":'R1',
        "author":'K',
        "bibcode":'2000JOptA...2R...1K',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 12
0
    def test_apostrophe_author(self):
        data = { "year":'2006',
                 "bibstem":'PhRvB',
                 "volume":"73",
                 "page":"100407",
                 "author":"'t Hooft",
                 "bibcode":'2006PhRvB..73j0407T',
               }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 13
0
    def test_JHEP(self):
        data = { "year":"2005",
        "bibstem":'JHEP.',
        "volume":"9",
        "page":"5",
        "author":'Boh',
        "bibcode":'2005JHEP...09..005B',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 14
0
    def test_WRR(self):
        data = { "year":"2005",
        "bibstem":'WRR..',
        "volume":"41",
        "page":'W11403',
        "author":'Pool, D. R.',
        "bibcode":'2005WRR....4111403P',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 15
0
    def test_PASA(self):
        data = { "year":"2013",
        "bibstem":'PASA.',
        "volume":"30",
        "page":'e003',
        "author":'Dummy',
          "bibcode":'2013PASA...30....3D',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 16
0
    def test_RSPTA(self):
        data = { "year":"2013",
          "bibstem":'RSPTA',
        "volume":"371",
        "page":"20120187",
        "author":'X',
        "bibcode":'2013RSPTA.37120187X',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 17
0
    def test_AMPC(self):
        data = { "year":"2013",
        "bibstem":'AMPC',
        "volume":'03',
        "page":'146',
        "author":'Boudali',
        "bibcode":'2013AMPC....3..146B',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 18
0
    def test_missing_bibstem(self):
        data = {
            "year": '2006',
            "volume": "73",
            "page": "100407",
            "author": "'t Hooft",
            "bibcode": '2006PhRvB..73j0407T',
        }

        self.assertEqual(make_bibcode(data), None)
Esempio n. 19
0
    def test_TSTJ(self):
        data = { "year":"2009",
        "bibstem":'TSTJ',
        "volume":"1",
        "page":'08JA03',
        "author":'X',
        "bibcode":'2009TSTJ....1hJA03X',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 20
0
    def test_WRR(self):
        data = {
            "year": "2005",
            "bibstem": 'WRR..',
            "volume": "41",
            "page": 'W11403',
            "author": 'Pool, D. R.',
            "bibcode": '2005WRR....4111403P',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 21
0
    def test_JHEP(self):
        data = {
            "year": "2005",
            "bibstem": 'JHEP.',
            "volume": "9",
            "page": "5",
            "author": 'Boh',
            "bibcode": '2005JHEP...09..005B',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 22
0
    def test_OExpr(self):
        data = { "year":"2010",
        "bibstem":'OExpr',
        "volume":"18",
        "issue":'S3',
        "page":'A444',
        "author":'Loser',
        "bibcode":'2010OExpr..18A.444L',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 23
0
    def test_TSTJ(self):
        data = {
            "year": "2009",
            "bibstem": 'TSTJ',
            "volume": "1",
            "page": '08JA03',
            "author": 'X',
            "bibcode": '2009TSTJ....1hJA03X',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 24
0
    def test_SciAm(self):
        data = { "year":"2005",
        "bibstem":'SciAm',
        "volume":"292",
        "page":"36",
        "issue":"3",
        "author":'Lineweaver, C',
        "bibcode":'2005SciAm.292c..36L',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 25
0
    def test_RSPTA(self):
        data = {
            "year": "2013",
            "bibstem": 'RSPTA',
            "volume": "371",
            "page": "20120187",
            "author": 'X',
            "bibcode": '2013RSPTA.37120187X',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 26
0
    def test_unicode_author(self):
        data = {
            "year": "2006",
            "bibstem": 'PhRvB',
            "volume": "73",
            "page": "100407",
            "author": u'\xc0stra',
            "bibcode": '2006PhRvB..73j0407A',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 27
0
    def test_JOptA(self):
        data = {
            "year": "2000",
            "bibstem": 'JOptA',
            "volume": "2",
            "page": 'R1',
            "author": 'K',
            "bibcode": '2000JOptA...2R...1K',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 28
0
    def test_entity_author(self):
        data = {
            "year": "2006",
            "bibstem": 'PhRvB',
            "volume": "73",
            "page": "100407",
            "author": "Östra",
            "bibcode": '2006PhRvB..73j0407O',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 29
0
    def test_IJCA(self):
        data = { "year":"2010",
        "bibstem":'IJCA.',
        "volume":"1",
        "issue":"28",
        "page":"127",
        "author":'Cool',
        "bibcode":'2010IJCA....1B.127C',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 30
0
    def test_PhRvL_2(self):
        data = {
            "year": "2006",
            "bibstem": 'PhRvL',
            "volume": "96",
            "page": "295701",
            "author": 'Grünwald, Michael',
            "bibcode": '2006PhRvL..96C5701G',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 31
0
    def test_PASA(self):
        data = {
            "year": "2013",
            "bibstem": 'PASA.',
            "volume": "30",
            "page": 'e003',
            "author": 'Dummy',
            "bibcode": '2013PASA...30....3D',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 32
0
    def test_missing_year_author(self):
        data = {
            "year": '....',
            "bibstem": 'JHEP',
            "volume": "1009",
            "page": "31",
            "author": 'B',
            "bibcode": '2010JHEP...09..031B',
        }

        self.assertEqual(make_bibcode(data), None)
Esempio n. 33
0
    def test_PLoSO(self):
        data = { "year":"2012",
        "bibstem":'PLoSO',
        "volume":"7",
        "page":'e29977',
        "issue":"1",
        "author":'Takeshi, N',
        "bibcode":'2012PLoSO...729977T',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 34
0
    def test_AMPC(self):
        data = {
            "year": "2013",
            "bibstem": 'AMPC',
            "volume": '03',
            "page": '146',
            "author": 'Boudali',
            "bibcode": '2013AMPC....3..146B',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 35
0
    def test_PLoSO_2(self):
        data = { "year":"2006",
        "bibstem":'PLoSO',
        "volume":"1",
        "page":'e23',
        "issue":"1",
        "author":'Aboody, Karen',
        "bibcode":'2006PLoSO...1...23A',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 36
0
    def test_apostrophe_author(self):
        data = {
            "year": '2006',
            "bibstem": 'PhRvB',
            "volume": "73",
            "page": "100407",
            "author": "'t Hooft",
            "bibcode": '2006PhRvB..73j0407T',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 37
0
    def test_JGR(self):
        data = {
            "year": "2007",
            "bibstem": 'JGR..',
            "volume": "112",
            "page": 'B06410',
            "author": 'V',
            "bibcode": '2007JGRB..11206410V',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 38
0
    def test_PhT(self):
        data = { "year":"1985",
        "bibstem":'PhT..',
        "volume":"38",
        "issue":"3", 
        "page":"55",
        "author":'Goodwin',
        "bibcode":'1985PhT....38c..55G',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 39
0
    def test_PhT(self):
        data = {
            "year": "1985",
            "bibstem": 'PhT..',
            "volume": "38",
            "issue": "3",
            "page": "55",
            "author": 'Goodwin',
            "bibcode": '1985PhT....38c..55G',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 40
0
    def test_OExpr(self):
        data = {
            "year": "2010",
            "bibstem": 'OExpr',
            "volume": "18",
            "issue": 'S3',
            "page": 'A444',
            "author": 'Loser',
            "bibcode": '2010OExpr..18A.444L',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 41
0
    def test_IJCA(self):
        data = {
            "year": "2010",
            "bibstem": 'IJCA.',
            "volume": "1",
            "issue": "28",
            "page": "127",
            "author": 'Cool',
            "bibcode": '2010IJCA....1B.127C',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 42
0
    def test_SciAm(self):
        data = {
            "year": "2005",
            "bibstem": 'SciAm',
            "volume": "292",
            "page": "36",
            "issue": "3",
            "author": 'Lineweaver, C',
            "bibcode": '2005SciAm.292c..36L',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 43
0
    def test_PLoSO(self):
        data = {
            "year": "2012",
            "bibstem": 'PLoSO',
            "volume": "7",
            "page": 'e29977',
            "issue": "1",
            "author": 'Takeshi, N',
            "bibcode": '2012PLoSO...729977T',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 44
0
    def test_PLoSO_2(self):
        data = {
            "year": "2006",
            "bibstem": 'PLoSO',
            "volume": "1",
            "page": 'e23',
            "issue": "1",
            "author": 'Aboody, Karen',
            "bibcode": '2006PLoSO...1...23A',
        }

        self.assertEqual(make_bibcode(data), data['bibcode'])
Esempio n. 45
0
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from adsutils import make_bibcode


data = { "year":'2006',
         "bibstem":'PhRvB',
         "volume":"73",
         "page":"100407",
         "author":"'t Hooft",
       }
print "Input data: %s" % str(data)
print "Bibcode: %s\n" % make_bibcode(data)

data = {"year":"2006",
        "bibstem":'PhRvL',
        "volume":"96",
        "page":"295701",
        "author":'Grünwald, Michael',
        }
print "Input data: %s" % str(data)
print "Bibcode: %s\n" % make_bibcode(data)

data = { "year":"2000",
        "bibstem":'JOptA',
        "volume":"2",
        "page":'R1',
        "author":'K',
Esempio n. 46
0
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from adsutils import make_bibcode

data = {
    "year": '2006',
    "bibstem": 'PhRvB',
    "volume": "73",
    "page": "100407",
    "author": "'t Hooft",
}
print "Input data: %s" % str(data)
print "Bibcode: %s\n" % make_bibcode(data)

data = {
    "year": "2006",
    "bibstem": 'PhRvL',
    "volume": "96",
    "page": "295701",
    "author": 'Grünwald, Michael',
}
print "Input data: %s" % str(data)
print "Bibcode: %s\n" % make_bibcode(data)

data = {
    "year": "2000",
    "bibstem": 'JOptA',
    "volume": "2",