Beispiel #1
0
import sys
sys.path.insert(0, '..')

from marmoset import Marmoset, BrowserException
import getpass

m = Marmoset()
username, password = raw_input("Enter username: "******"Enter password: "******"Number of release tokens for {0} {1}: {2}".format(course, assignment, tokens)
        except BrowserException:
            pass
Beispiel #2
0
import os
import sys
import traceback

sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))


if __name__ == "__main__":
    from marmoset import Marmoset
    from marmoset.core.key import get_user_info

    username, password = get_user_info()
    m = Marmoset(username=username, password=password)

    try:
        a0 = m.fetch("cs246", "A0P0")
        a1 = m.fetch("cs246", "A1P1a")
    except Exception as e:
        print traceback.format_exc()
        print "Test Failed"
        exit(1)
    print "Test Passed"
Beispiel #3
0
import os
import sys
import traceback

sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))

if __name__ == "__main__":
    from marmoset import Marmoset
    from marmoset.core.key import get_user_info

    username, password = get_user_info()
    m = Marmoset(username=username, password=password)

    try:
        a0 = m.fetch('cs246', 'A0P0')
        a1 = m.fetch('cs246', 'A1P1a')
    except Exception as e:
        print traceback.format_exc()
        print 'Test Failed'
        exit(1)
    print 'Test Passed'
Beispiel #4
0
import sys
sys.path.insert(0, '..')

from marmoset import Marmoset, BrowserException
import getpass

m = Marmoset()
username, password = raw_input("Enter username: "******"Enter password: "******"Number of release tokens for {0} {1}: {2}".format(
                course, assignment, tokens)
        except BrowserException:
            pass