Skip to content
Permalink
6e0ede5dee
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (7 sloc) 319 Bytes
import unittest
from datastore import global_datastore
class DataStoreTestCase(unittest.TestCase):
def test_set(self):
self.assertTrue(global_datastore.set("hello", "world"))
self.assertEqual(global_datastore.get("hello"), "world")
self.assertTrue(global_datastore.delete("hello"))