Source

pypi-metadata / tests / test_rpc.py

import sys
import config
import store
import unittest
import rpc
import cStringIO
import store
import os

CONFIG_FILE = os.path.join(os.path.dirname(store.__file__), "config.ini")

class TestXMLRPC ( unittest.TestCase ):

    def setUp(self):
        # get a storage object to use in calls to xmlrpc functions
        self.store = store.Store( config.Config( CONFIG_FILE ) )

    def test_search(self):
        result = rpc.search( self.store, {}, "sql" )
        self.failUnless( len( result ) > 0 )

    def test_list_packages(self):
        result = rpc.list_packages(self.store)
        self.failUnless(len(result) == len(self.store.get_packages()))
    
    def test_package_releases(self):
        self.failUnless(False)

    def test_release_urls(self):
        self.failUnless(False)

    def test_release_data(self):
        self.failUnless(False)

    def test_updated_releases(self):
        self.failUnless(False)

    def test_changelog(self):
        self.failUnless(False)

    def test_post_cheesecake_for_release(self):
        self.failUnless(False)

    def test_ratings(self):
        self.failUnless(False)


if __name__ == '__main__':
    unittest.main()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.