Changeset 14


Ignore:
Timestamp:
Aug 11, 2010, 4:01:22 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100805123615-9d6ec4hhnvqpv6dx
bzr:committer:
Danny Navarro <j@dannynavarro.net>
bzr:file-ids:

mzcms/models.py models.py-20100730084238-fjjwldiefr0w07zv-4
mzcms/tests.py tests.py-20100730084238-fjjwldiefr0w07zv-7
bzr:mapping-version:
v4
bzr:repository-uuid:
724254b2-fbe6-419d-9466-c04ef4c9d29d
bzr:revision-id:
j@dannynavarro.net-20100805130201-ei4wf5y657imckrv
bzr:revno:
14
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-05 15:02:01.618000031 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-05T13:02:01.618000Z
Message:

Filled in attributes for Proteins. Updated tests

Location:
trunk/mzcms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/models.py

    r13 r14  
    66
    77class Proteins(Folder):
     8    """A container for proteins objects"""
    89    pass
    910
    1011class Protein(Persistent):
    11     pass
     12    """A Protein"""
     13    def __init__(self, native_id, sequence, pep_refs):
     14        self.sequence = str(native_id)
     15        self.sequence = str(sequence)
     16        self.pep_refs = tuple(pep_refs) or None
    1217
    1318class Peptides(Folder):
  • trunk/mzcms/tests.py

    r1 r14  
    1313
    1414    def test_my_view(self):
    15         from mzcms.views import my_view
     15        from mzcms.views import experiment_view
    1616        request = testing.DummyRequest()
    17         info = my_view(request)
     17        info = experiment_view(request)
    1818        self.assertEqual(info['project'], 'mzcms')
    1919
Note: See TracChangeset for help on using the changeset viewer.