Index: /trunk/glueforge/templates/psdb/popfits_at.tt
===================================================================
--- /trunk/glueforge/templates/psdb/popfits_at.tt	(revision 4278)
+++ /trunk/glueforge/templates/psdb/popfits_at.tt	(revision 4278)
@@ -0,0 +1,13 @@
+AT_SETUP([[% namespace %]PopFits() - Removes the last limit row from the database and returns them in a binary FITS table])
+AT_KEYWORDS([[% namespace %]PopFits])
+
+AT_CHECK([dbsetup])
+# run insert so there is a row in the table
+AT_CHECK([insert])
+AT_CHECK([popfits])
+AT_CHECK([dbcleanup])
+if [ test -f "blargh" ] ; then
+    rm -f "blargh"
+fi
+
+AT_CLEANUP
Index: /trunk/glueforge/templates/psdb/testsuite_at.tt
===================================================================
--- /trunk/glueforge/templates/psdb/testsuite_at.tt	(revision 4277)
+++ /trunk/glueforge/templates/psdb/testsuite_at.tt	(revision 4278)
@@ -22,2 +22,4 @@
 [% INCLUDE popobject_at.tt %]
 ###
+[% INCLUDE popfits_at.tt %]
+###
